package com.anxin.bean;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;


@Repository
@Scope("prototype")
@SuppressWarnings("serial")
public class User implements java.io.Serializable {
	// Fields
	private int id; //* 类型id，自增主键. *
    private String name;//* =员工姓名 *

    private Department locdept;//* 类型id，所在部门 *

    private String username;//* 用户 *
    private String password;//* 密码 *



	/** default constructor */
    public User(){}
	/** full constructor */
    public User(String name,Department locdept,String username,String password){
    	this.name=name;
    	this.locdept=locdept;

    	this.username=username;
    	this.password=password;
    }


	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Department getLocdept() {
		return locdept;
	}
	public void setLocdept(Department locdept) {
		this.locdept = locdept;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}

}